package com.coding.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * thumb
 * @author 
 */
public class Thumb implements Serializable {
    private Integer thumb_id;

    private Integer thumb_user_id;

    private Integer thumn_source_id;

    private String thumb_kind;

    private Date thumb_time;

    private static final long serialVersionUID = 1L;

    public Integer getThumb_id() {
        return thumb_id;
    }

    public void setThumb_id(Integer thumb_id) {
        this.thumb_id = thumb_id;
    }

    public Integer getThumb_user_id() {
        return thumb_user_id;
    }

    public void setThumb_user_id(Integer thumb_user_id) {
        this.thumb_user_id = thumb_user_id;
    }

    public Integer getThumn_source_id() {
        return thumn_source_id;
    }

    public void setThumn_source_id(Integer thumn_source_id) {
        this.thumn_source_id = thumn_source_id;
    }

    public String getThumb_kind() {
        return thumb_kind;
    }

    public void setThumb_kind(String thumb_kind) {
        this.thumb_kind = thumb_kind;
    }

    public Date getThumb_time() {
        return thumb_time;
    }

    public void setThumb_time(Date thumb_time) {
        this.thumb_time = thumb_time;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Thumb other = (Thumb) that;
        return (this.getThumb_id() == null ? other.getThumb_id() == null : this.getThumb_id().equals(other.getThumb_id()))
            && (this.getThumb_user_id() == null ? other.getThumb_user_id() == null : this.getThumb_user_id().equals(other.getThumb_user_id()))
            && (this.getThumn_source_id() == null ? other.getThumn_source_id() == null : this.getThumn_source_id().equals(other.getThumn_source_id()))
            && (this.getThumb_kind() == null ? other.getThumb_kind() == null : this.getThumb_kind().equals(other.getThumb_kind()))
            && (this.getThumb_time() == null ? other.getThumb_time() == null : this.getThumb_time().equals(other.getThumb_time()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getThumb_id() == null) ? 0 : getThumb_id().hashCode());
        result = prime * result + ((getThumb_user_id() == null) ? 0 : getThumb_user_id().hashCode());
        result = prime * result + ((getThumn_source_id() == null) ? 0 : getThumn_source_id().hashCode());
        result = prime * result + ((getThumb_kind() == null) ? 0 : getThumb_kind().hashCode());
        result = prime * result + ((getThumb_time() == null) ? 0 : getThumb_time().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", thumb_id=").append(thumb_id);
        sb.append(", thumb_user_id=").append(thumb_user_id);
        sb.append(", thumn_source_id=").append(thumn_source_id);
        sb.append(", thumb_kind=").append(thumb_kind);
        sb.append(", thumb_time=").append(thumb_time);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}